﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta charset="utf-8">
    <title>国家集采智能监控平台</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link href="@Url.Content("~/layuiadmin/layui/css/layui.css")" rel="stylesheet" />
    <link href="@Url.Content("~/layuiadmin/style/admin.css")" rel="stylesheet" />
    <script src="@Url.Content("~/Scripts/jquery-3.3.1.min.js")"></script>
    <script src="@Url.Content("~/layuiadmin/layui/layui.js?v=1.0")"></script>
    <script src="@Url.Content("~/Scripts/json2.js")"></script>
    <script src="@Url.Content("~/Scripts/base64.js")"></script>
    <script src="@Url.Content("~/Scripts/layuiExtend.js")"></script>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-tab">
                <ul class="layui-tab-title">
                    <li class="layui-this">
                        药品预警
                    </li>
                    @if (ViewData["IsSys"] == "1") { 
                    <li>
                        科室预警
                    </li>
                    } 
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-card-body">
                            <table id="LAY-report-list" lay-filter="LAY-report-list"></table>
                        </div>
                    </div>
                    @if (ViewData["IsSys"] == "1")
                    {
                        <div class="layui-tab-item">
                            <div class="layui-card-body">
                                <table id="LAY-dept-list" lay-filter="LAY-dept-list"></table>
                            </div>
                        </div>
                    }
                    </div>
            </div>
            </div>
        </div>
</body>
</html>
<style>
    .layui-table-cell {
        font-size: 12px;
        padding: 0 3px;
        height: 30px;
        overflow: visible;
        text-overflow: inherit;
        white-space: normal;
        word-break: break-all;
    }
</style>
<script type="text/javascript">
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'table', 'admin'], function () {
        var table = layui.table
            , form = layui.form
            , $ = layui.$;
        table.render({
            elem: '#LAY-report-list'
            , url: '/Report/GetWholeWarnList'//模拟接口
            , method: 'post'
            ,height:500
            , cols: [[
                { field: 'GpName', title: '集采批次', width: 180, fixed: 'left', align: 'center' }
                , { field: 'DrugName', title: '中选药品名称', width: 180, fixed: 'left', align: 'center' }
                , { field: 'Specs', title: '规格', width: 100, fixed: 'left', align: 'center' }
                , { field: 'TaskQty', title: '中选药品年度任务量', width: 110, align: 'center' }
                , { field: 'UseNum', title: '中选药品使用数量', width: 100, align: 'center' }
                , { field: 'MinUnit', title: '单位', width: 100, align: 'center' }
                , { field: 'TaskRate', title: '中选药品任务完成进度', width: 100, align: 'center' }
                , { field: 'UseRatioStr', title: '中选药品使用占比', width: 100, align: 'center' }
                , { field: 'TaskRatioStr', title: '中选药品医保局规定使用占比', width: 100, align: 'center' }
                , { field: 'UnitPrice', title: '单价', width: 100, align: 'center' }
                , { field: 'PackQty', title: '药品包装数量', width: 130, align: 'center' }
                , { field: 'ProducerName', title: '生产厂家', width: 180, align: 'center' }
                , { field: 'EndDateStr', title: '年度考核截止日期', width: 140, align: 'center' }
            ]]
            , page: false
            , text: { none: '暂无数据' }
        });

        table.render({
            elem: '#LAY-dept-list'
            , url: '/Report/GetDeptWarnList'//模拟接口
            , method: 'post'
            , height: 500
            , cols: [[
                { field: 'DeptName', title: '任务科室', width: 130, fixed: 'left', align: 'center' }
                , { field: 'GpName', title: '集采批次', width: 180, fixed: 'left', align: 'center' }
                , { field: 'DrugName', title: '中选药品名称', width: 180, fixed: 'left', align: 'center' }
                , { field: 'Specs', title: '规格', width: 100, fixed: 'left', align: 'center' }
                , { field: 'DeptQty', title: '科室药品年度任务量', width: 100, align: 'center' }
                , { field: 'MinUnit', title: '单位', width: 60, align: 'center' }
                , { field: 'TaskRatioStr', title: '中选药品医保局规定使用占比', width: 110, align: 'center' }
                , { field: 'TaskRate', title: '科室任务完成进度', width: 100, align: 'center' }
                , { field: 'UseRatioStr', title: '中选药品使用占比', width: 100, align: 'center' }
                , { field: 'UnitPrice', title: '单价', width: 100, align: 'center' }
                , { field: 'ProducerName', title: '生产厂家', width: 180, align: 'center' }
                , { field: 'EndDateStr', title: '年度考核截止日期', width: 140, align: 'center' }
            ]]
            , page: false
            , text: { none: '暂无数据' }
        });
    });
</script>